<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meat name="robots" content="index,nofollow" />
		<title>
			模板配置
		</title>
		<link rel="stylesheet" href="*ADMIN*/layui/css/layui.css">
		<script src="*ADMIN*/js/jquery-3.4.1.min.js"></script>
		<script src="*ADMIN*/layui/layui.js"></script>
	</head>
 <style type="text/css">
.layui-form-label {
    width: 150px;
}
 </style>
	<body>
		<div class="layui-card">
			<div class="layui-card-body">
				<form class="layui-form" action="">
					<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
						<ul class="layui-tab-title" id="admin_set">
							<li class="layui-this">
								基本配置
							</li>
							<a class="layui-btn layui-btn-normal layui-btn-mini" data-method="admin_set" url="/admin.php/ad/index.html?in={:cms('default_wap')}" ><span class="button-content"> 广告管理</span></a>
						</ul>
						<div class="layui-tab-content">
							
								<div class="layui-form-item">
									<label class="layui-form-label">
										手机版头部标题
									</label>
									<div class="layui-input-block">
										<div class="layui-input-inline" style="width: 120px;">
											<input type="text" name="cms1" placeholder="请输入内容" required lay-verify="required" value="{:cmswap('cms1')}" class="layui-input">
									    </div>
									</div>
								</div>
								<div class="layui-form-item">
  								<div class="layui-form-item layui-form-text">
   								 <label class="layui-form-label">手机版发现自定义导航</label>
   								 <div class="layui-input-block">
    								  <textarea name="cms3" placeholder="请输入内容" class="layui-textarea">{:cmswap('cms3')}</textarea>
    								</div>
 								 </div>
							</div>
							
								<div class="layui-form-item">
  								<div class="layui-form-item layui-form-text">
   								 <label class="layui-form-label">手机版热门搜索</label>
   								 <div class="layui-input-block">
    								  <textarea name="cms30" placeholder="请输入内容" class="layui-textarea">{:cmswap('cms30')}</textarea>
    								</div>
 								 </div>
							</div>
							
								<div class="layui-form-item">
									<label class="layui-form-label">
										qq群二维码地址
									</label>
									<div class="layui-input-block">
										<div class="layui-input-inline" style="width: 400px;">
											<input type="text" name="cms4" placeholder="请输入内容" required lay-verify="required" value="{:cmswap('cms4')}" class="layui-input">
									    </div>
									</div>
								</div>
							
								<div class="layui-form-item">
									<label class="layui-form-label">
										微信二维码地址
									</label>
									<div class="layui-input-block">
										<div class="layui-input-inline" style="width: 400px;">
											<input type="text" name="cms5" placeholder="请输入内容" required lay-verify="required" value="{:cmswap('cms5')}" class="layui-input">
									    </div>
									</div>
								</div>
								
								
								<div class="layui-form-item">
									<label class="layui-form-label">
										侧边支付宝收款码
									</label>
									<div class="layui-input-block">
										<div class="layui-input-inline" style="width: 400px;">
											<input type="text" name="cms7" placeholder="请输入内容" required lay-verify="required" value="{:cmswap('cms7')}" class="layui-input">
									    </div>
									</div>
								</div>
							
								<div class="layui-form-item">
									<label class="layui-form-label">
									    侧边微信收款码
									</label>
									<div class="layui-input-block">
										<div class="layui-input-inline" style="width: 400px;">
											<input type="text" name="cms8" placeholder="请输入内容" required lay-verify="required" value="{:cmswap('cms8')}" class="layui-input">
									    </div>
									</div>
								</div>	
								
								<div class="layui-form-item">
									<label class="layui-form-label">
										侧边工作时间介绍
									</label>
									<div class="layui-input-block">
										<div class="layui-input-inline">
											<input type="text" name="cms6" placeholder="请输入内容" required lay-verify="required" value="{:cmswap('cms6')}" class="layui-input">
									    </div>
									</div>
								</div>
							
								<div class="layui-form-item">
									<label class="layui-form-label">
									    QQ群地址
									</label>
									<div class="layui-input-block">
										<div class="layui-input-inline" style="width: 400px;">
											<input type="text" name="cms9" placeholder="请输入内容" required lay-verify="required" value="{:cmswap('cms9')}" class="layui-input">
									    </div>
									</div>
								</div>	
							
								<div class="layui-form-item">
									<label class="layui-form-label">
										浏览量大于多少显示'热'
									</label>
									<div class="layui-input-block">
										<div class="layui-input-inline" style="width: 120px;">
											<input type="text" name="cms10" placeholder="请输入内容" required lay-verify="required" value="{:cmswap('cms10')}" class="layui-input">
									    </div>
									</div>
								</div>
							
								<div class="layui-form-item">
									<label class="layui-form-label">
										隐藏内容的会员信息
									</label>
									<div class="layui-input-block">
										<input type="radio" name="cms11" value="1" title="显示" {if condition="cmswap('cms11') eq 1"}checked{/if}>
										<input type="radio" name="cms11" value="0" title="隐藏" {if condition="cmswap('cms11') eq 0"}checked{/if}>
									</div>
								</div>
							
					 
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-input-block">
							<button class="layui-btn" lay-submit lay-filter="cms">
								立即提交
							</button>
						</div>
					</div>
				</form>
			</div>
		</div>
{include file="app/admin/view/footer.html"}
<script>
layui.use('form',function(){
  var form = layui.form
  ,jq = layui.jquery;
  //提交
  form.on('submit(cms)', function(data){
    loading = layer.load(2, {
      shade: [0.2,'#000']
    });
    var param = data.field;
    jq.post('{:url("index/index/cmswap")}',param,function(data){
      if(data.code == 200){
        layer.close(loading);
        layer.msg(data.msg, {icon: 1, time: 1000}, function(){
        });
      }else{
        layer.close(loading);
        layer.msg(data.msg, {icon: 2, anim: 6, time: 1000});
      }
    });
    return false;
  });
});
</script>
<script>
layui.use('colorpicker', function(){
  var $ = layui.$
  ,colorpicker = layui.colorpicker;
  //选择颜色
  colorpicker.render({
    elem: '#test-form1'
    ,color: '{:cmswap('ys1')}'
    ,done: function(color){
      $('#test-form-input1').val(color);
    }
  });
  
  colorpicker.render({
    elem: '#test-form2'
    ,color: '{:cmswap('ys2')}'
    ,done: function(color){
      $('#test-form-input2').val(color);
    }
  });
  colorpicker.render({
    elem: '#test-form3'
    ,color: '{:cmswap('ys3')}'
    ,done: function(color){
      $('#test-form-input3').val(color);
    }
  });
  colorpicker.render({
    elem: '#test-form4'
    ,color: '{:cmswap('ys4')}'
    ,done: function(color){
      $('#test-form-input4').val(color);
    }
  });
  colorpicker.render({
    elem: '#test-form5'
    ,color: '{:cmswap('ys5')}'
    ,done: function(color){
      $('#test-form-input5').val(color);
    }
  });
  colorpicker.render({
    elem: '#test-form6'
    ,color: '{:cmswap('ys6')}'
    ,done: function(color){
      $('#test-form-input6').val(color);
    }
  });
  colorpicker.render({
    elem: '#test-form7'
    ,color: '{:cmswap('ys7')}'
    ,done: function(color){
      $('#test-form-input7').val(color);
    }
  });
  colorpicker.render({
    elem: '#test-form8'
    ,color: '{:cmswap('ys8')}'
    ,done: function(color){
      $('#test-form-input8').val(color);
    }
  });
  
});
</script>
	</body>
</html>